# -*- coding: UTF-8 -*-


class UserinfoDetail(object):

    _member_info_list = {}

    def newDO(self):
        return UserinfoDetailDO()


    def save(self, uin, userinfoDetailDO):
        self._member_info_list[uin] = userinfoDetailDO


    def get(self, uin):
        return self._member_info_list[uin] if self._member_info_list.has_key(uin) else None

    def remove(self, uin):
        if self._member_info_list.has_key(uin):
            self._member_info_list.pop(uin)
        return True


class UserinfoDetailDO(object):

    login_url = ''

    file_url = ''

    sync_check_url = ''

    device_id = ''

    login_time = 0

    uin = 0

    pass_ticket = ''

    sid = ''

    skey = ''

    '''
    ... {
    ...     Skey(skey):, 
    ...     Sid(wxsid):, 
    ...     Uin(wxuin):, 用户ID，同一个用户不变
    ...     DeviceID(pass_ticket):
    ... }
    '''
    base_request_params = {} 

    action_sync_key = ''

    status_sync_key = ''   

    username = ''

    nickname = ''

    session = None
